package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 预警分析显示参数表
 * @TableName ybab02b
 */
@TableName(value ="ybab02b")
@Data
public class Ybab02b implements Serializable {
    /**
     * ID号
     */
    @TableField(value = "ybab02b010")
    private String ybab02b010;

    /**
     * 模型编号
     */
    @TableField(value = "ybab02b020")
    private Integer ybab02b020;

    /**
     * 数值
     */
    @TableField(value = "ybab02b030")
    private Integer ybab02b030;

    /**
     * 颜色值
     */
    @TableField(value = "ybab02b040")
    private Integer ybab02b040;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybab02b other = (Ybab02b) that;
        return (this.getYbab02b010() == null ? other.getYbab02b010() == null : this.getYbab02b010().equals(other.getYbab02b010()))
            && (this.getYbab02b020() == null ? other.getYbab02b020() == null : this.getYbab02b020().equals(other.getYbab02b020()))
            && (this.getYbab02b030() == null ? other.getYbab02b030() == null : this.getYbab02b030().equals(other.getYbab02b030()))
            && (this.getYbab02b040() == null ? other.getYbab02b040() == null : this.getYbab02b040().equals(other.getYbab02b040()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbab02b010() == null) ? 0 : getYbab02b010().hashCode());
        result = prime * result + ((getYbab02b020() == null) ? 0 : getYbab02b020().hashCode());
        result = prime * result + ((getYbab02b030() == null) ? 0 : getYbab02b030().hashCode());
        result = prime * result + ((getYbab02b040() == null) ? 0 : getYbab02b040().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybab02b010=").append(ybab02b010);
        sb.append(", ybab02b020=").append(ybab02b020);
        sb.append(", ybab02b030=").append(ybab02b030);
        sb.append(", ybab02b040=").append(ybab02b040);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}